package com.ruoyi.sys.garden.service.impl;

import java.util.List;

import com.ruoyi.sys.garden.entity.TbRecruitmentRelease;
import com.ruoyi.sys.garden.mapper.TbRecruitmentReleaseMapper;
import com.ruoyi.sys.garden.service.ITbRecruitmentReleaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 招聘发布Service业务层处理
 * 
 * @author jinsuo
 * @date 2022-05-24
 */
@Service
public class TbRecruitmentReleaseServiceImpl implements ITbRecruitmentReleaseService
{
    @Autowired
    private TbRecruitmentReleaseMapper tbRecruitmentReleaseMapper;

    /**
     * 查询招聘发布
     * 
     * @param rrId 招聘发布主键
     * @return 招聘发布
     */
    @Override
    public TbRecruitmentRelease selectTbRecruitmentReleaseByRrId(Long rrId)
    {
        return tbRecruitmentReleaseMapper.selectTbRecruitmentReleaseByRrId(rrId);
    }

    /**
     * 查询招聘发布列表
     * 
     * @param tbRecruitmentRelease 招聘发布
     * @return 招聘发布
     */
    @Override
    public List<TbRecruitmentRelease> selectTbRecruitmentReleaseList(TbRecruitmentRelease tbRecruitmentRelease)
    {
        return tbRecruitmentReleaseMapper.selectTbRecruitmentReleaseList(tbRecruitmentRelease);
    }

    /**
     * 新增招聘发布
     * 
     * @param tbRecruitmentRelease 招聘发布
     * @return 结果
     */
    @Override
    public int insertTbRecruitmentRelease(TbRecruitmentRelease tbRecruitmentRelease)
    {
        return tbRecruitmentReleaseMapper.insertTbRecruitmentRelease(tbRecruitmentRelease);
    }

    /**
     * 修改招聘发布
     * 
     * @param tbRecruitmentRelease 招聘发布
     * @return 结果
     */
    @Override
    public int updateTbRecruitmentRelease(TbRecruitmentRelease tbRecruitmentRelease)
    {
        return tbRecruitmentReleaseMapper.updateTbRecruitmentRelease(tbRecruitmentRelease);
    }

    /**
     * 批量删除招聘发布
     * 
     * @param rrIds 需要删除的招聘发布主键
     * @return 结果
     */
    @Override
    public int deleteTbRecruitmentReleaseByRrIds(Long[] rrIds)
    {
        return tbRecruitmentReleaseMapper.deleteTbRecruitmentReleaseByRrIds(rrIds);
    }

    /**
     * 删除招聘发布信息
     * 
     * @param rrId 招聘发布主键
     * @return 结果
     */
    @Override
    public int deleteTbRecruitmentReleaseByRrId(Long rrId)
    {
        return tbRecruitmentReleaseMapper.deleteTbRecruitmentReleaseByRrId(rrId);
    }
}
